package com.itheima.service.impl;

import com.itheima.domain.Student;
import com.itheima.mapper.StudentMapper;
import com.itheima.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<Student> testFindAll() {
        List<Student> studentList = studentMapper.testFindAll();
        return studentList;
    }

    @Override
    public void testSave(Student student) {

        studentMapper.testSave(student);
    }

    @Override
    public Student testFindById(String id) {
        Student student=studentMapper.testFindById(id);
        return student;
    }

    @Override
    public void testUpdate(Student student) {
        studentMapper.testUpdate(student);
    }

    @Override
    public void testDeleteById(String id) {
        studentMapper.testDeleteById(id);
    }
}
